<template>
  <Container>
      <Sprite :texture="startPage"></Sprite>
      <Sprite :texture="StartBtn" x="233" y="520" @click="startGame" :interactive="true"></Sprite>
  </Container>
</template>

<script>
import startPage from "../assets/startPage.png"
import StartBtn from "../assets/StartBtn.png"
export default {
    name: "StartPage",
    setup(props, {emit}) {
        const startGame = () => {
            console.log("开始游戏")
            emit("change-page", "GamePage")
        }
        return {
            startPage,
            StartBtn,
            startGame,
        }
    }
}
</script>

<style scoped>

</style>
